package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.mapper.ApplyMapper;
import com.example.demo.model.entity.ApplyEntity;
import com.example.demo.model.param.ApplyParam;
import com.example.demo.service.ApplyService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ApplyServiceImpl extends ServiceImpl<ApplyMapper,ApplyEntity> implements ApplyService {



    @Autowired
    private ApplyMapper mapper;

    @Override
    public PageInfo selectApplierList(ApplyParam applyParam) {
        PageHelper.startPage(applyParam.getPage(),applyParam.getLimit());
        List selectAppliers = mapper.selectApplyerList(applyParam);
        PageInfo pageInfo = new PageInfo(selectAppliers);
        return pageInfo;
    }
}
